function PlotSelectedTfcLines_Maartje_NogMeerPlotjes()

%% Set up..
Files = GetFiles(); Colors = GetColors(); LineStyles = GetLineStyles(); Freq = GetFrequencyBins();
channels = {'OCCV', 'OCCD', 'IPSI', 'IPSS', 'FROP', 'PARA', 'PARO', 'TEMI', 'TEMM', 'TEMS'};
% channels = {'OCCV', 'OCCD', 'IPSI', 'IPSS'};
xlimGeneral = [-2500 2500];
ylimGeneral = 'auto'; %[0.91 1.19];
lineWidth = 2;

PlotsetFinal(Files, Colors, LineStyles, Freq, channels, xlimGeneral, ylimGeneral, lineWidth);

end

function PlotsetFinal(Files, Colors, LineStyles, Freq, channels, xlimGeneral, ylimGeneral, lineWidth)
figures = [];
ftitles = {};

OCCUnambiguousColor = [0.8 0 0];
OCCAmbiguousColor = [1 0.6 0.6];
IPSUnambiguousColor = [0 0 0.8];
IPSAmbiguousColor = [0.6 0.6 1];

sets = {{'OCC','IPS'}}; %,{'OCCD','IPSI'},{'OCCV','IPSS'}
for s = 1:length(sets)
    OCC = sets{s}{1};
    IPS = sets{s}{2};
    
    %% FIG 1
    figures(end+1) = figure();
    
    subplot 221
    ax = gca; hold('on'); SetAxisProps(ax, 'Response');
    PlotSingleLine(ax, Files.RegCW_FHAmbResp, OCC, Freq.Alpha, OCCAmbiguousColor, LineStyles.Solid, lineWidth, 'Spontaneous response - Alpha (7-13Hz)');
    PlotSingleLine(ax, Files.RegCW_FHUnambResp, OCC, Freq.Alpha, OCCUnambiguousColor, LineStyles.Solid, lineWidth, 'Induced response - Alpha (7-13Hz)');
    grid(ax, 'on'); xlim(ax, xlimGeneral); ylim(ax, ylimGeneral); legend(ax, 'show', 'Location', 'NorthOutside'); legend(ax,'boxoff');
    set(ax, 'YTickMode', 'auto');
    title 'RegCW FH Resp Occ'
    
    subplot 222
    ax = gca; hold('on'); SetAxisProps(ax, 'Response');
    PlotSingleLine(ax, Files.RegCW_FHAmbResp, OCC, Freq.HighGamma, OCCAmbiguousColor, LineStyles.Dashed, lineWidth, 'Spontaneous response - Gamma (70-130Hz)');
    PlotSingleLine(ax, Files.RegCW_FHUnambResp, OCC, Freq.HighGamma, OCCUnambiguousColor, LineStyles.Dashed, lineWidth, 'Induced response - Gamma (70-130Hz)');
    grid(ax, 'on'); xlim(ax, xlimGeneral); ylim(ax, ylimGeneral); legend(ax, 'show', 'Location', 'NorthOutside'); legend(ax,'boxoff');
    set(ax, 'YTickMode', 'auto');
    title 'RegCW FH Resp Occ'
    
    subplot 223
    ax = gca; hold('on'); SetAxisProps(ax, 'Response');
    PlotSingleLine(ax, Files.RegCW_FHAmbResp, IPS, Freq.Alpha, IPSAmbiguousColor, LineStyles.Solid, lineWidth, 'Spontaneous response - Alpha (7-13Hz)');
    PlotSingleLine(ax, Files.RegCW_FHUnambResp, IPS, Freq.Alpha, IPSUnambiguousColor, LineStyles.Solid, lineWidth, 'Induced response - Alpha (7-13Hz)');
    grid(ax, 'on'); xlim(ax, xlimGeneral); ylim(ax, ylimGeneral); legend(ax, 'show', 'Location', 'NorthOutside'); legend(ax,'boxoff');
    set(ax, 'YTickMode', 'auto');
    title 'RegCW FH Resp Ips'
    
    subplot 224
    ax = gca; hold('on'); SetAxisProps(ax, 'Response');
    PlotSingleLine(ax, Files.RegCW_FHAmbResp, IPS, Freq.HighGamma, IPSAmbiguousColor, LineStyles.Dashed, lineWidth, 'Spontaneous response - Gamma (70-130Hz)');
    PlotSingleLine(ax, Files.RegCW_FHUnambResp, IPS, Freq.HighGamma, IPSUnambiguousColor, LineStyles.Dashed, lineWidth, 'Induced response - Gamma (70-130Hz)');
    grid(ax, 'on'); xlim(ax, xlimGeneral); ylim(ax, ylimGeneral); legend(ax, 'show', 'Location', 'NorthOutside'); legend(ax,'boxoff');
    set(ax, 'YTickMode', 'auto');
    title 'RegCW FH Resp Ips'
    
    ftitles{end+1} = ['FaceHouse - ' OCC '+' IPS];
    
    %% FIG 2
    
    figures(end+1) = figure();
    
    subplot 221
    ax = gca; hold('on'); SetAxisProps(ax, 'Response');
    PlotSingleLine(ax, Files.RegCW_SphAmbResp, OCC, Freq.Alpha, OCCAmbiguousColor, LineStyles.Solid, lineWidth, 'Spontaneous response - Alpha (7-13Hz)');
    PlotSingleLine(ax, Files.RegCW_SphUnambResp, OCC, Freq.Alpha, OCCUnambiguousColor, LineStyles.Solid, lineWidth, 'Induced response - Alpha (7-13Hz)');
    grid(ax, 'on'); xlim(ax, xlimGeneral); ylim(ax, ylimGeneral); legend(ax, 'show', 'Location', 'NorthOutside'); legend(ax,'boxoff');
    set(ax, 'YTickMode', 'auto');
    title 'RegCW Sph Resp Occ'
    
    subplot 222
    ax = gca; hold('on'); SetAxisProps(ax, 'Response');
    PlotSingleLine(ax, Files.RegCW_SphAmbResp, OCC, Freq.HighGamma, OCCAmbiguousColor, LineStyles.Dashed, lineWidth, 'Spontaneous response - Gamma (70-130Hz)');
    PlotSingleLine(ax, Files.RegCW_SphUnambResp, OCC, Freq.HighGamma, OCCUnambiguousColor, LineStyles.Dashed, lineWidth, 'Induced response - Gamma (70-130Hz)');
    grid(ax, 'on'); xlim(ax, xlimGeneral); ylim(ax, ylimGeneral); legend(ax, 'show', 'Location', 'NorthOutside'); legend(ax,'boxoff');
    set(ax, 'YTickMode', 'auto');
    title 'RegCW Sph Resp Occ'
    
    subplot 223
    ax = gca; hold('on'); SetAxisProps(ax, 'Response');
    PlotSingleLine(ax, Files.RegCW_SphAmbResp, IPS, Freq.Alpha, IPSAmbiguousColor, LineStyles.Solid, lineWidth, 'Spontaneous response - Alpha (7-13Hz)');
    PlotSingleLine(ax, Files.RegCW_SphUnambResp, IPS, Freq.Alpha, IPSUnambiguousColor, LineStyles.Solid, lineWidth, 'Induced response - Alpha (7-13Hz)');
    grid(ax, 'on'); xlim(ax, xlimGeneral); ylim(ax, ylimGeneral); legend(ax, 'show', 'Location', 'NorthOutside'); legend(ax,'boxoff');
    set(ax, 'YTickMode', 'auto');
    title 'RegCW Sph Resp Ips'
    
    subplot 224
    ax = gca; hold('on'); SetAxisProps(ax, 'Response');
    PlotSingleLine(ax, Files.RegCW_SphAmbResp, IPS, Freq.HighGamma, IPSAmbiguousColor, LineStyles.Dashed, lineWidth, 'Spontaneous response - Gamma (70-130Hz)');
    PlotSingleLine(ax, Files.RegCW_SphUnambResp, IPS, Freq.HighGamma, IPSUnambiguousColor, LineStyles.Dashed, lineWidth, 'Induced response - Gamma (70-130Hz)');
    grid(ax, 'on'); xlim(ax, xlimGeneral); ylim(ax, ylimGeneral); legend(ax, 'show', 'Location', 'NorthOutside'); legend(ax,'boxoff');
    set(ax, 'YTickMode', 'auto');
    title 'RegCW Sph Resp Ips'
    
    ftitles{end+1} = ['Sphere - ' OCC '+' IPS];
    
    %% FIG 3
    figures(end+1) = figure();
    
    subplot 221
    ax = gca; hold('on'); SetAxisProps(ax, 'Stimulus');
    PlotSingleLine(ax, Files.RegCW_FHUnambStim, IPS, Freq.Alpha, IPSUnambiguousColor, LineStyles.Solid, lineWidth, 'Parietal - Alpha (7-13Hz)');
    PlotSingleLine(ax, Files.RegCW_FHUnambStim, OCC, Freq.Alpha, OCCUnambiguousColor, LineStyles.Solid, lineWidth, 'Occipital - Alpha (7-13Hz)');
    grid(ax, 'on'); xlim(ax, xlimGeneral); ylim(ax, ylimGeneral); legend(ax, 'show', 'Location', 'NorthOutside'); legend(ax,'boxoff');
    set(ax, 'YTickMode', 'auto');
    title 'RegCW FH Stim'
    
    subplot 222
    ax = gca; hold('on'); SetAxisProps(ax, 'Stimulus');
    PlotSingleLine(ax, Files.RegCW_FHUnambStim, IPS, Freq.HighGamma, IPSUnambiguousColor, LineStyles.Dashed, lineWidth, 'Parietal - Gamma (70-130Hz)');
    PlotSingleLine(ax, Files.RegCW_FHUnambStim, OCC, Freq.HighGamma, OCCUnambiguousColor, LineStyles.Dashed, lineWidth, 'Occipital - Gamma (70-130Hz)');
    grid(ax, 'on'); xlim(ax, xlimGeneral); ylim(ax, ylimGeneral); legend(ax, 'show', 'Location', 'NorthOutside'); legend(ax,'boxoff');
    set(ax, 'YTickMode', 'auto');
    title 'RegCW FH Stim'
    
    subplot 223
    ax = gca; hold('on'); SetAxisProps(ax, 'Stimulus');
    PlotSingleLine(ax, Files.RegCW_SphUnambStim, IPS, Freq.Alpha, IPSUnambiguousColor, LineStyles.Solid, lineWidth, 'Parietal - Alpha (7-13Hz)');
    PlotSingleLine(ax, Files.RegCW_SphUnambStim, OCC, Freq.Alpha, OCCUnambiguousColor, LineStyles.Solid, lineWidth, 'Occipital - Alpha (7-13Hz)');
    grid(ax, 'on'); xlim(ax, xlimGeneral); ylim(ax, ylimGeneral); legend(ax, 'show', 'Location', 'NorthOutside'); legend(ax,'boxoff');
    set(ax, 'YTickMode', 'auto');
    title 'RegCW Sph Stim'
    
    subplot 224
    ax = gca; hold('on'); SetAxisProps(ax, 'Stimulus');
    PlotSingleLine(ax, Files.RegCW_SphUnambStim, IPS, Freq.HighGamma, IPSUnambiguousColor, LineStyles.Dashed, lineWidth, 'Parietal - Gamma (70-130Hz)');
    PlotSingleLine(ax, Files.RegCW_SphUnambStim, OCC, Freq.HighGamma, OCCUnambiguousColor, LineStyles.Dashed, lineWidth, 'Occipital - Gamma (70-130Hz)');
    grid(ax, 'on'); xlim(ax, xlimGeneral); ylim(ax, ylimGeneral); legend(ax, 'show', 'Location', 'NorthOutside'); legend(ax,'boxoff');
    set(ax, 'YTickMode', 'auto');
    title 'RegCW Sph Stim'
    
    ftitles{end+1} = ['Stimulus ' OCC '+' IPS]; end
SaveAndCloseFigures(figures, ftitles);
end


function SetAxisProps(ax, markerText)
% set(ax, 'YTick', [.9:.025:1.2]);
% set(ax, 'YTickLabel', {'0.90', '', '0.95', '', '1.00', '', '1.05', '', '1.10', '', '1.15', '', '1.20'});
set(ax, 'XTick', [-2000, -1500, -1000, -500, 0, 500, 1000, 1500, 2000]);
set(ax, 'XTickLabel', {'-2s', '', '-1s', '', markerText, '', '+1s', '', '+2s'});
end



function SaveAndCloseFigures(figures, ftitles)
saveMultipleFigures(figures, ftitles, true);
% for fI = 1:length(figures), close(figures(fI)), end;
end


function [hObject legendentry] = PlotSingleLine(ax, filename, channel, freqbinNr, color, linestyle, linewidth, lineDescription)
load(filename)
subject = tfc.subject;
epochdescription = tfc.epochs;
freqbindescription = tfc.freqbindescriptions{freqbinNr};
if ~exist('lineDescription', 'var')
    lineDescription = [subject ' ' channel ' - ' epochdescription ' - ' freqbindescription];
    lineDescription(find(lineDescription=='_')) =  '-';
end
data = tfc.data.(channel)(freqbinNr);
LINE = plot(tfc.times, data.mean, 'Color', color, 'LineStyle', linestyle, 'LineWidth', linewidth);
set(LINE, 'DisplayName', lineDescription);
% hAnnotation = get(hobj,'Annotation');
% hLegendEntry = get(hAnnotation','LegendInformation');
% set(hLegendEntry,'IconDisplayStyle','off')
end


function Files = GetFiles()
% Files.Joined_FHAmbResp = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF_RV FaceHouse Ambiguous Response Tfc.mat';
% Files.Joined_FHAmbFResp = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF_RV FaceHouse Ambiguous Face Response Tfc.mat';
% Files.Joined_FHAmbHResp = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF_RV FaceHouse Ambiguous House Response Tfc.mat';
% Files.Joined_FHUnambResp = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF_RV FaceHouse Unambiguous Response Tfc.mat';
% Files.Joined_FHUnambFResp = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF_RV FaceHouse Unambiguous Face Response Tfc.mat';
% Files.Joined_FHUnambHResp = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF_RV FaceHouse Unambiguous House Response Tfc.mat';
% Files.Joined_FHUnambStim = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF_RV FaceHouse Unambiguous Stimulus Tfc.mat';
% Files.Joined_FHUnambFStim = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF_RV FaceHouse Unambiguous Face Stimulus Tfc.mat';
% Files.Joined_FHUnambHStim = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF_RV FaceHouse Unambiguous House Stimulus Tfc.mat';
% Files.Joined_SphAmbResp = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF_RV Sphere Ambiguous Response Tfc.mat';
% Files.Joined_SphUnambResp = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF_RV Sphere Unambiguous Response Tfc.mat';
% Files.Joined_SphUnambStim = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF_RV Sphere Unambiguous Stimulus Tfc.mat';

Files.Joined_FHAmbResp = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF FaceHouse Ambiguous Response Tfc.mat';
Files.Joined_FHAmbFResp = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF FaceHouse Ambiguous Face Response Tfc.mat';
Files.Joined_FHAmbHResp = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF FaceHouse Ambiguous House Response Tfc.mat';
Files.Joined_FHUnambResp = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF FaceHouse Unambiguous Response Tfc.mat';
Files.Joined_FHUnambFResp = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF FaceHouse Unambiguous Face Response Tfc.mat';
Files.Joined_FHUnambHResp = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF FaceHouse Unambiguous House Response Tfc.mat';
Files.Joined_FHUnambStim = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF FaceHouse Unambiguous Stimulus Tfc.mat';
Files.Joined_FHUnambFStim = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF FaceHouse Unambiguous Face Stimulus Tfc.mat';
Files.Joined_FHUnambHStim = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF FaceHouse Unambiguous House Stimulus Tfc.mat';
Files.Joined_SphAmbResp = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF Sphere Ambiguous Response Tfc.mat';
Files.Joined_SphUnambResp = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF Sphere Unambiguous Response Tfc.mat';
Files.Joined_SphUnambStim = 'D:\ECoG\Data\ByRegion\Timefreq\Joined_CW_DJ_DS_JF Sphere Unambiguous Stimulus Tfc.mat';

%Other files
folderByRegion = 'D:\ECoG\Data\ByRegion\Timefreq\';
subject = 'RegCW';
Files.RegCW_FHAmbResp = [folderByRegion subject ' FaceHouse Ambiguous Response Tfc.mat'];
Files.RegCW_FHAmbFResp = [folderByRegion subject ' FaceHouse Ambiguous Face Response Tfc.mat'];
Files.RegCW_FHAmbHResp = [folderByRegion subject ' FaceHouse Ambiguous House Response Tfc.mat'];
Files.RegCW_FHUnambResp = [folderByRegion subject ' FaceHouse Unambiguous Response Tfc.mat'];
Files.RegCW_FHUnambFResp = [folderByRegion subject ' FaceHouse Unambiguous Face Response Tfc.mat'];
Files.RegCW_FHUnambHResp = [folderByRegion subject ' FaceHouse Unambiguous House Response Tfc.mat'];
Files.RegCW_FHUnambStim = [folderByRegion subject ' FaceHouse Unambiguous Stimulus Tfc.mat'];
Files.RegCW_FHUnambFStim = [folderByRegion subject ' FaceHouse Unambiguous Face Stimulus Tfc.mat'];
Files.RegCW_FHUnambHStim = [folderByRegion subject ' FaceHouse Unambiguous House Stimulus Tfc.mat'];
Files.RegCW_SphAmbResp = [folderByRegion subject ' Sphere Ambiguous Response Tfc.mat'];
Files.RegCW_SphUnambResp = [folderByRegion subject ' Sphere Unambiguous Response Tfc.mat'];
Files.RegCW_SphUnambStim = [folderByRegion subject ' Sphere Unambiguous Stimulus Tfc.mat'];
subject = 'RegDJ';
Files.RegDJ_FHAmbResp = [folderByRegion subject ' FaceHouse Ambiguous Response Tfc.mat'];
Files.RegDJ_FHAmbFResp = [folderByRegion subject ' FaceHouse Ambiguous Face Response Tfc.mat'];
Files.RegDJ_FHAmbHResp = [folderByRegion subject ' FaceHouse Ambiguous House Response Tfc.mat'];
Files.RegDJ_FHUnambResp = [folderByRegion subject ' FaceHouse Unambiguous Response Tfc.mat'];
Files.RegDJ_FHUnambFResp = [folderByRegion subject ' FaceHouse Unambiguous Face Response Tfc.mat'];
Files.RegDJ_FHUnambHResp = [folderByRegion subject ' FaceHouse Unambiguous House Response Tfc.mat'];
Files.RegDJ_FHUnambStim = [folderByRegion subject ' FaceHouse Unambiguous Stimulus Tfc.mat'];
Files.RegDJ_FHUnambFStim = [folderByRegion subject ' FaceHouse Unambiguous Face Stimulus Tfc.mat'];
Files.RegDJ_FHUnambHStim = [folderByRegion subject ' FaceHouse Unambiguous House Stimulus Tfc.mat'];
Files.RegDJ_SphAmbResp = [folderByRegion subject ' Sphere Ambiguous Response Tfc.mat'];
Files.RegDJ_SphUnambResp = [folderByRegion subject ' Sphere Unambiguous Response Tfc.mat'];
Files.RegDJ_SphUnambStim = [folderByRegion subject ' Sphere Unambiguous Stimulus Tfc.mat'];
subject = 'RegDS';
Files.RegDS_FHAmbResp = [folderByRegion subject ' FaceHouse Ambiguous Response Tfc.mat'];
Files.RegDS_FHAmbFResp = [folderByRegion subject ' FaceHouse Ambiguous Face Response Tfc.mat'];
Files.RegDS_FHAmbHResp = [folderByRegion subject ' FaceHouse Ambiguous House Response Tfc.mat'];
Files.RegDS_FHUnambResp = [folderByRegion subject ' FaceHouse Unambiguous Response Tfc.mat'];
Files.RegDS_FHUnambFResp = [folderByRegion subject ' FaceHouse Unambiguous Face Response Tfc.mat'];
Files.RegDS_FHUnambHResp = [folderByRegion subject ' FaceHouse Unambiguous House Response Tfc.mat'];
Files.RegDS_FHUnambStim = [folderByRegion subject ' FaceHouse Unambiguous Stimulus Tfc.mat'];
Files.RegDS_FHUnambFStim = [folderByRegion subject ' FaceHouse Unambiguous Face Stimulus Tfc.mat'];
Files.RegDS_FHUnambHStim = [folderByRegion subject ' FaceHouse Unambiguous House Stimulus Tfc.mat'];
Files.RegDS_SphAmbResp = [folderByRegion subject ' Sphere Ambiguous Response Tfc.mat'];
Files.RegDS_SphUnambResp = [folderByRegion subject ' Sphere Unambiguous Response Tfc.mat'];
Files.RegDS_SphUnambStim = [folderByRegion subject ' Sphere Unambiguous Stimulus Tfc.mat'];
subject = 'RegFG';
Files.RegFG_FHAmbResp = [folderByRegion subject ' FaceHouse Ambiguous Response Tfc.mat'];
Files.RegFG_FHAmbFResp = [folderByRegion subject ' FaceHouse Ambiguous Face Response Tfc.mat'];
Files.RegFG_FHAmbHResp = [folderByRegion subject ' FaceHouse Ambiguous House Response Tfc.mat'];
Files.RegFG_FHUnambResp = [folderByRegion subject ' FaceHouse Unambiguous Response Tfc.mat'];
Files.RegFG_FHUnambFResp = [folderByRegion subject ' FaceHouse Unambiguous Face Response Tfc.mat'];
Files.RegFG_FHUnambHResp = [folderByRegion subject ' FaceHouse Unambiguous House Response Tfc.mat'];
Files.RegFG_FHUnambStim = [folderByRegion subject ' FaceHouse Unambiguous Stimulus Tfc.mat'];
Files.RegFG_FHUnambFStim = [folderByRegion subject ' FaceHouse Unambiguous Face Stimulus Tfc.mat'];
Files.RegFG_FHUnambHStim = [folderByRegion subject ' FaceHouse Unambiguous House Stimulus Tfc.mat'];
Files.RegFG_SphAmbResp = [folderByRegion subject ' Sphere Ambiguous Response Tfc.mat'];
Files.RegFG_SphUnambResp = [folderByRegion subject ' Sphere Unambiguous Response Tfc.mat'];
Files.RegFG_SphUnambStim = [folderByRegion subject ' Sphere Unambiguous Stimulus Tfc.mat'];
subject = 'RegJF';
Files.RegJF_FHAmbResp = [folderByRegion subject ' FaceHouse Ambiguous Response Tfc.mat'];
Files.RegJF_FHAmbFResp = [folderByRegion subject ' FaceHouse Ambiguous Face Response Tfc.mat'];
Files.RegJF_FHAmbHResp = [folderByRegion subject ' FaceHouse Ambiguous House Response Tfc.mat'];
Files.RegJF_FHUnambResp = [folderByRegion subject ' FaceHouse Unambiguous Response Tfc.mat'];
Files.RegJF_FHUnambFResp = [folderByRegion subject ' FaceHouse Unambiguous Face Response Tfc.mat'];
Files.RegJF_FHUnambHResp = [folderByRegion subject ' FaceHouse Unambiguous House Response Tfc.mat'];
Files.RegJF_FHUnambStim = [folderByRegion subject ' FaceHouse Unambiguous Stimulus Tfc.mat'];
Files.RegJF_FHUnambFStim = [folderByRegion subject ' FaceHouse Unambiguous Face Stimulus Tfc.mat'];
Files.RegJF_FHUnambHStim = [folderByRegion subject ' FaceHouse Unambiguous House Stimulus Tfc.mat'];
Files.RegJF_SphAmbResp = [folderByRegion subject ' Sphere Ambiguous Response Tfc.mat'];
Files.RegJF_SphUnambResp = [folderByRegion subject ' Sphere Unambiguous Response Tfc.mat'];
Files.RegJF_SphUnambStim = [folderByRegion subject ' Sphere Unambiguous Stimulus Tfc.mat'];
subject = 'RegRV';
Files.RegRV_FHAmbResp = [folderByRegion subject ' FaceHouse Ambiguous Response Tfc.mat'];
Files.RegRV_FHAmbFResp = [folderByRegion subject ' FaceHouse Ambiguous Face Response Tfc.mat'];
Files.RegRV_FHAmbHResp = [folderByRegion subject ' FaceHouse Ambiguous House Response Tfc.mat'];
Files.RegRV_FHUnambResp = [folderByRegion subject ' FaceHouse Unambiguous Response Tfc.mat'];
Files.RegRV_FHUnambFResp = [folderByRegion subject ' FaceHouse Unambiguous Face Response Tfc.mat'];
Files.RegRV_FHUnambHResp = [folderByRegion subject ' FaceHouse Unambiguous House Response Tfc.mat'];
Files.RegRV_FHUnambStim = [folderByRegion subject ' FaceHouse Unambiguous Stimulus Tfc.mat'];
Files.RegRV_FHUnambFStim = [folderByRegion subject ' FaceHouse Unambiguous Face Stimulus Tfc.mat'];
Files.RegRV_FHUnambHStim = [folderByRegion subject ' FaceHouse Unambiguous House Stimulus Tfc.mat'];
Files.RegRV_SphAmbResp = [folderByRegion subject ' Sphere Ambiguous Response Tfc.mat'];
Files.RegRV_SphUnambResp = [folderByRegion subject ' Sphere Unambiguous Response Tfc.mat'];
Files.RegRV_SphUnambStim = [folderByRegion subject ' Sphere Unambiguous Stimulus Tfc.mat'];
end

function Freq = GetFrequencyBins()
Freq.Theta = 1;
Freq.Alpha = 2;
Freq.Beta = 3;
Freq.LowGamma = 4;
Freq.HighGamma = 5;
end

function Colors = GetColors()
Colors.Yellow = [1 1 0];
Colors.Magenta = [1 0 1];
Colors.Cyan = [0 1 1];
Colors.Red = [1 0 0];
Colors.Green = [0 1 0];
Colors.Blue = [0 0 1];
Colors.White = [1 1 1];
Colors.Black = [0 0 0];
end

function LineStyles = GetLineStyles()
LineStyles.Solid = '-';
LineStyles.Dashed = '--';
LineStyles.Dotted = ':';
LineStyles.DashDot = '-.';
end